home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / MacsBug 6.2.2.cpt / MacsBug 6.2.2 / dcmds / dcmd Includes / dcmd.p < prev    next >
MacBinary  |  1991-11-19  |  6.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Nov 19 10:55:24 1991, modified Tue Nov 19 10:55:24 1991, creator 'MPS ', type ASCII, 6433 bytes "dcmd.p" , at 0x19a1 336 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 64 63 6d 64 2e 70 | 00 00 00 00 00 00 00 00 |..dcmd.p|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 19 21 00 | 00 01 50 a5 4e e4 6c a5 |......!.|..P.N.l.|
|00000060| 4e e4 6c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |N.l.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 38 7a 00 00 |........|....8z..|
|00000080| 7b 09 64 63 6d 64 2e 70 | 0d 20 20 54 68 69 73 20 |{.dcmd.p|. This |
|00000090| 69 73 20 74 68 65 20 64 | 63 6d 64 20 69 6e 74 65 |is the d|cmd inte|
|000000a0| 72 66 61 63 65 2e 0d 09 | 20 43 6f 70 79 72 69 67 |rface...| Copyrig|
|000000b0| 68 74 20 a9 20 31 39 38 | 38 20 41 70 70 6c 65 20 |ht . 198|8 Apple |
|000000c0| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 20 20 |Computer|, Inc. |
|000000d0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000000e0| 76 65 64 2e 0d 7d 0d 0d | 55 4e 49 54 20 64 63 6d |ved..}..|UNIT dcm|
|000000f0| 64 3b 0d 0d 49 4e 54 45 | 52 46 41 43 45 0d 0d 09 |d;..INTE|RFACE...|
|00000100| 09 43 4f 4e 53 54 20 7b | 20 50 6f 73 73 69 62 6c |.CONST {| Possibl|
|00000110| 65 20 72 65 71 75 65 73 | 74 73 20 66 72 6f 6d 20 |e reques|ts from |
|00000120| 74 68 65 20 64 65 62 75 | 67 67 65 72 20 74 6f 20 |the debu|gger to |
|00000130| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 7d 0d 09 09 |the comm|and }...|
|00000140| 09 09 09 09 09 09 64 63 | 6d 64 49 6e 69 74 20 3d |......dc|mdInit =|
|00000150| 20 30 3b 0d 09 09 09 09 | 09 09 09 09 64 63 6d 64 | 0;.....|....dcmd|
|00000160| 44 6f 49 74 20 3d 20 31 | 3b 0d 09 09 09 09 09 09 |DoIt = 1|;.......|
|00000170| 09 09 64 63 6d 64 48 65 | 6c 70 20 3d 20 32 3b 0d |..dcmdHe|lp = 2;.|
|00000180| 09 09 0d 09 09 09 09 09 | 09 09 09 44 30 52 65 67 |........|...D0Reg|
|00000190| 69 73 74 65 72 20 20 20 | 3d 20 30 3b 0d 09 09 09 |ister |= 0;....|
|000001a0| 09 09 09 09 09 44 31 52 | 65 67 69 73 74 65 72 20 |.....D1R|egister |
|000001b0| 20 20 3d 20 31 3b 0d 09 | 09 09 09 09 09 09 09 44 | = 1;..|.......D|
|000001c0| 32 52 65 67 69 73 74 65 | 72 20 20 20 3d 20 32 3b |2Registe|r = 2;|
|000001d0| 0d 09 09 09 09 09 09 09 | 09 44 33 52 65 67 69 73 |........|.D3Regis|
|000001e0| 74 65 72 20 20 20 3d 20 | 33 3b 0d 09 09 09 09 09 |ter = |3;......|
|000001f0| 09 09 09 44 34 52 65 67 | 69 73 74 65 72 20 20 20 |...D4Reg|ister |
|00000200| 3d 20 34 3b 0d 09 09 09 | 09 09 09 09 09 44 35 52 |= 4;....|.....D5R|
|00000210| 65 67 69 73 74 65 72 20 | 20 20 3d 20 35 3b 0d 09 |egister | = 5;..|
|00000220| 09 09 09 09 09 09 09 44 | 36 52 65 67 69 73 74 65 |.......D|6Registe|
|00000230| 72 20 20 20 3d 20 36 3b | 0d 09 09 09 09 09 09 09 |r = 6;|........|
|00000240| 09 44 37 52 65 67 69 73 | 74 65 72 20 20 20 3d 20 |.D7Regis|ter = |
|00000250| 37 3b 0d 0d 09 09 09 09 | 09 09 09 09 41 30 52 65 |7;......|....A0Re|
|00000260| 67 69 73 74 65 72 20 20 | 20 3d 20 38 3b 0d 09 09 |gister | = 8;...|
|00000270| 09 09 09 09 09 09 41 31 | 52 65 67 69 73 74 65 72 |......A1|Register|
|00000280| 20 20 20 3d 20 39 3b 0d | 09 09 09 09 09 09 09 09 | = 9;.|........|
|00000290| 41 32 52 65 67 69 73 74 | 65 72 20 20 20 3d 20 31 |A2Regist|er = 1|
|000002a0| 30 3b 0d 09 09 09 09 09 | 09 09 09 41 33 52 65 67 |0;......|...A3Reg|
|000002b0| 69 73 74 65 72 20 20 20 | 3d 20 31 31 3b 0d 09 09 |ister |= 11;...|
|000002c0| 09 09 09 09 09 09 41 34 | 52 65 67 69 73 74 65 72 |......A4|Register|
|000002d0| 20 20 20 3d 20 31 32 3b | 0d 09 09 09 09 09 09 09 | = 12;|........|
|000002e0| 09 41 35 52 65 67 69 73 | 74 65 72 20 20 20 3d 20 |.A5Regis|ter = |
|000002f0| 31 33 3b 0d 09 09 09 09 | 09 09 09 09 41 36 52 65 |13;.....|....A6Re|
|00000300| 67 69 73 74 65 72 20 20 | 20 3d 20 31 34 3b 0d 09 |gister | = 14;..|
|00000310| 09 09 09 09 09 09 09 41 | 37 52 65 67 69 73 74 65 |.......A|7Registe|
|00000320| 72 20 20 20 3d 20 31 35 | 3b 0d 0d 09 09 09 09 09 |r = 15|;.......|
|00000330| 09 09 09 50 43 52 65 67 | 69 73 74 65 72 20 20 20 |...PCReg|ister |
|00000340| 3d 20 31 36 3b 0d 09 09 | 09 09 09 09 09 09 53 52 |= 16;...|......SR|
|00000350| 52 65 67 69 73 74 65 72 | 20 20 20 3d 20 31 37 3b |Register| = 17;|
|00000360| 09 09 7b 20 53 52 20 69 | 73 20 6f 6e 6c 79 20 31 |..{ SR i|s only 1|
|00000370| 36 20 62 69 74 73 20 61 | 6e 64 20 69 73 20 73 74 |6 bits a|nd is st|
|00000380| 6f 72 65 64 20 69 6e 20 | 74 68 65 20 68 69 67 68 |ored in |the high|
|00000390| 20 77 6f 72 64 20 7d 0d | 09 09 0d 09 09 20 20 20 | word }.|..... |
|000003a0| 20 20 20 66 72 65 65 42 | 6c 6f 63 6b 20 20 20 20 | freeB|lock |
|000003b0| 20 20 20 20 20 20 20 3d | 20 30 3b 0d 09 09 09 09 | =| 0;.....|
|000003c0| 09 09 09 09 6e 6f 6e 72 | 65 6c 6f 63 61 74 61 62 |....nonr|elocatab|
|000003d0| 6c 65 42 6c 6f 63 6b 20 | 3d 20 31 3b 0d 09 09 09 |leBlock |= 1;....|
|000003e0| 09 09 09 09 09 72 65 6c | 6f 63 61 74 61 62 6c 65 |.....rel|ocatable|
|000003f0| 42 6c 6f 63 6b 20 20 20 | 20 3d 20 32 3b 0d 0d 09 |Block | = 2;...|
|00000400| 09 54 59 50 45 20 52 65 | 67 46 69 6c 65 50 74 72 |.TYPE Re|gFilePtr|
|00000410| 20 20 20 3d 20 5e 52 65 | 67 46 69 6c 65 3b 0d 09 | = ^Re|gFile;..|
|00000420| 09 09 09 09 09 09 52 65 | 67 46 69 6c 65 20 20 20 |......Re|gFile |
|00000430| 20 20 20 3d 20 41 52 52 | 41 59 20 5b 30 2e 2e 31 | = ARR|AY [0..1|
|00000440| 37 5d 20 4f 46 20 4c 4f | 4e 47 49 4e 54 3b 0d 09 |7] OF LO|NGINT;..|
|00000450| 09 0d 09 09 09 09 09 09 | 09 64 63 6d 64 42 6c 6f |........|.dcmdBlo|
|00000460| 63 6b 50 74 72 20 3d 20 | 5e 64 63 6d 64 42 6c 6f |ckPtr = |^dcmdBlo|
|00000470| 63 6b 3b 0d 09 09 09 09 | 09 09 09 64 63 6d 64 42 |ck;.....|...dcmdB|
|00000480| 6c 6f 63 6b 20 20 20 20 | 3d 20 52 45 43 4f 52 44 |lock |= RECORD|
|00000490| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000004a0| 09 09 09 09 09 09 09 72 | 65 67 69 73 74 65 72 46 |.......r|egisterF|
|000004b0| 69 6c 65 3a 20 52 65 67 | 46 69 6c 65 50 74 72 3b |ile: Reg|FilePtr;|
|000004c0| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000004d0| 09 09 09 09 09 09 09 72 | 65 71 75 65 73 74 3a 20 |.......r|equest: |
|000004e0| 20 20 20 20 20 49 4e 54 | 45 47 45 52 3b 0d 09 09 | INT|EGER;...|
|000004f0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00000500| 09 09 09 09 61 62 6f 72 | 74 65 64 3a 20 20 20 20 |....abor|ted: |
|00000510| 20 20 42 4f 4f 4c 45 41 | 4e 3b 20 20 20 20 20 7b | BOOLEA|N; {|
|00000520| 20 53 65 74 20 74 6f 20 | 74 72 75 65 20 69 66 20 | Set to |true if |
|00000530| 74 68 65 20 75 73 65 72 | 20 74 79 70 65 73 20 61 |the user| types a|
|00000540| 20 6b 65 79 20 77 68 69 | 6c 65 20 73 63 72 6f 6c | key whi|le scrol|
|00000550| 6c 69 6e 67 20 7d 0d 09 | 09 09 09 09 09 09 09 09 |ling }..|........|
|00000560| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 45 4e 44 |........|.....END|
|00000570| 3b 0d 0d 7b 45 4a 45 43 | 54 7d 0d 0d 20 20 7b 20 |;..{EJEC|T}.. { |
|00000580| 50 61 63 73 61 6c 20 64 | 65 63 6c 61 72 61 74 69 |Pacsal d|eclarati|
|00000590| 6f 6e 73 20 66 6f 72 20 | 64 65 62 75 67 67 65 72 |ons for |debugger|
|000005a0| 20 63 61 6c 6c 20 62 61 | 63 6b 20 72 6f 75 74 69 | call ba|ck routi|
|000005b0| 6e 65 73 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |nes that| can be |
|000005c0| 75 73 65 64 20 62 79 20 | 61 20 64 63 6d 64 20 7d |used by |a dcmd }|
|000005d0| 0d 0d 20 20 7b 20 44 72 | 61 77 20 74 68 65 20 74 |.. { Dr|aw the t|
|000005e0| 65 78 74 20 69 6e 20 74 | 68 65 20 50 61 73 63 61 |ext in t|he Pasca|
|000005f0| 6c 20 73 74 72 69 6e 67 | 20 61 73 20 6f 6e 65 20 |l string| as one |
|00000600| 6f 72 20 6d 6f 72 65 20 | 6c 69 6e 65 73 20 73 65 |or more |lines se|
|00000610| 70 61 72 61 74 65 64 20 | 62 79 20 43 52 27 73 2e |parated |by CR's.|
|00000620| 0d 09 09 20 20 45 61 63 | 68 20 6c 69 6e 65 20 63 |... Eac|h line c|
|00000630| 61 75 73 65 73 20 74 68 | 65 20 4d 61 63 73 42 75 |auses th|e MacsBu|
|00000640| 67 20 64 69 73 70 6c 61 | 79 20 74 6f 20 62 65 20 |g displa|y to be |
|00000650| 73 63 72 6f 6c 6c 65 64 | 20 61 6e 64 20 74 68 65 |scrolled| and the|
|00000660| 20 6e 65 77 20 6c 69 6e | 65 20 74 6f 20 62 65 0d | new lin|e to be.|
|00000670| 09 09 09 09 64 72 61 77 | 6e 20 61 74 20 74 68 65 |....draw|n at the|
|00000680| 20 62 6f 74 74 6f 6d 2e | 20 49 66 20 74 68 65 20 | bottom.| If the |
|00000690| 75 73 65 72 20 74 79 70 | 65 73 20 61 20 6b 65 79 |user typ|es a key|
|000006a0| 20 77 68 69 6c 65 20 73 | 63 72 6f 6c 6c 69 6e 67 | while s|crolling|
|000006b0| 20 74 68 65 6e 20 74 68 | 65 20 61 62 6f 72 74 65 | then th|e aborte|
|000006c0| 64 0d 09 09 09 09 66 6c | 61 67 20 69 73 20 73 65 |d.....fl|ag is se|
|000006d0| 74 20 74 65 6c 6c 69 6e | 67 20 74 68 65 20 63 6f |t tellin|g the co|
|000006e0| 6d 6d 61 6e 64 20 74 6f | 20 74 65 72 6d 69 6e 61 |mmand to| termina|
|000006f0| 74 65 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 2e 20 |te immed|iately. |
|00000700| 7d 0d 09 09 50 52 4f 43 | 45 44 55 52 45 20 64 63 |}...PROC|EDURE dc|
|00000710| 6d 64 44 72 61 77 4c 69 | 6e 65 20 28 73 74 72 3a |mdDrawLi|ne (str:|
|00000720| 20 53 74 72 32 35 35 29 | 3b 0d 0d 20 20 7b 20 44 | Str255)|;.. { D|
|00000730| 72 61 77 20 74 68 65 20 | 74 65 78 74 20 69 6e 20 |raw the |text in |
|00000740| 74 68 65 20 50 61 73 63 | 61 6c 20 73 74 72 69 6e |the Pasc|al strin|
|00000750| 67 20 61 73 20 61 20 63 | 6f 6e 74 69 6e 75 61 74 |g as a c|ontinuat|
|00000760| 69 6f 6e 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ion of t|he curre|
|00000770| 6e 74 20 6c 69 6e 65 2e | 0d 09 09 20 20 43 52 27 |nt line.|... CR'|
|00000780| 73 20 61 72 65 20 6e 6f | 74 20 67 69 76 65 6e 20 |s are no|t given |
|00000790| 73 70 65 63 69 61 6c 20 | 74 72 65 61 74 6d 65 6e |special |treatmen|
|000007a0| 74 2e 20 7d 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |t. }...P|ROCEDURE|
|000007b0| 20 64 63 6d 64 44 72 61 | 77 53 74 72 69 6e 67 20 | dcmdDra|wString |
|000007c0| 28 73 74 72 3a 20 53 74 | 72 32 35 35 29 3b 0d 0d |(str: St|r255);..|
|000007d0| 20 20 7b 20 44 72 61 77 | 20 61 20 67 69 76 65 6e | { Draw| a given|
|000007e0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 61 | number |of chara|
|000007f0| 63 74 65 72 73 20 73 74 | 61 72 74 69 6e 67 20 66 |cters st|arting f|
|00000800| 72 6f 6d 20 74 68 65 20 | 67 69 76 65 6e 20 70 6f |rom the |given po|
|00000810| 69 6e 74 65 72 20 61 73 | 20 61 20 0d 20 20 09 20 |inter as| a . . |
|00000820| 63 6f 6e 74 69 6e 75 61 | 74 69 6f 6e 20 6f 66 20 |continua|tion of |
|00000830| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|00000840| 2e 20 43 52 27 73 20 61 | 72 65 20 6e 6f 74 20 67 |. CR's a|re not g|
|00000850| 69 76 65 6e 20 73 70 65 | 63 69 61 6c 20 74 72 65 |iven spe|cial tre|
|00000860| 61 74 6d 65 6e 74 2e 20 | 7d 0d 20 20 50 52 4f 43 |atment. |}. PROC|
|00000870| 45 44 55 52 45 20 64 63 | 6d 64 44 72 61 77 54 65 |EDURE dc|mdDrawTe|
|00000880| 78 74 28 74 65 78 74 3a | 20 53 74 72 69 6e 67 50 |xt(text:| StringP|
|00000890| 74 72 3b 20 6c 65 6e 67 | 74 68 3a 20 49 4e 54 45 |tr; leng|th: INTE|
|000008a0| 47 45 52 29 3b 0d 0d 20 | 20 7b 20 53 63 72 6f 6c |GER);.. | { Scrol|
|000008b0| 6c 73 20 74 68 65 20 4d | 61 63 73 42 75 67 20 64 |ls the M|acsBug d|
|000008c0| 69 73 70 6c 61 79 20 75 | 70 20 6f 6e 65 20 6c 69 |isplay u|p one li|
|000008d0| 6e 65 20 6c 65 61 76 69 | 6e 67 20 61 20 62 6c 61 |ne leavi|ng a bla|
|000008e0| 6e 6b 20 6c 69 6e 65 20 | 61 74 20 74 68 65 20 62 |nk line |at the b|
|000008f0| 6f 74 74 6f 6d 2e 20 7d | 0d 20 20 50 52 4f 43 45 |ottom. }|. PROCE|
|00000900| 44 55 52 45 20 64 63 6d | 64 53 63 72 6f 6c 6c 3b |DURE dcm|dScroll;|
|00000910| 0d 0d 20 20 7b 20 44 69 | 73 70 6c 61 79 20 74 68 |.. { Di|splay th|
|00000920| 65 20 50 61 73 63 61 6c | 20 73 74 72 69 6e 67 20 |e Pascal| string |
|00000930| 69 6e 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 6c |in the c|ommand l|
|00000940| 69 6e 65 20 61 72 65 61 | 20 61 6e 64 20 77 61 69 |ine area| and wai|
|00000950| 74 20 66 6f 72 20 61 20 | 6b 65 79 20 74 6f 20 62 |t for a |key to b|
|00000960| 65 20 70 72 65 73 73 65 | 64 2e 0d 09 09 20 20 52 |e presse|d.... R|
|00000970| 65 74 75 72 6e 20 54 52 | 55 45 20 69 66 20 74 68 |eturn TR|UE if th|
|00000980| 65 20 75 73 65 72 20 74 | 79 70 65 64 20 52 65 74 |e user t|yped Ret|
|00000990| 75 72 6e 2e 20 41 6c 6c | 20 6f 74 68 65 72 20 6b |urn. All| other k|
|000009a0| 65 79 73 20 72 65 74 75 | 72 6e 20 46 41 4c 53 45 |eys retu|rn FALSE|
|000009b0| 2e 20 4d 61 63 73 42 75 | 67 20 73 61 76 65 73 20 |. MacsBu|g saves |
|000009c0| 74 68 69 73 0d 09 09 09 | 09 6b 65 79 20 61 6e 64 |this....|.key and|
|000009d0| 20 61 64 64 73 20 69 74 | 20 74 6f 20 74 68 65 20 | adds it| to the |
|000009e0| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 6f 6e 63 |command |line onc|
|000009f0| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 6f |e the cu|rrent co|
|00000a00| 6d 6d 61 6e 64 20 63 6f | 6d 70 6c 65 74 65 73 2e |mmand co|mpletes.|
|00000a10| 20 54 79 70 69 6e 67 20 | 61 6e 79 0d 09 09 09 09 | Typing |any.....|
|00000a20| 6b 65 79 20 6f 74 68 65 | 72 20 74 68 61 6e 20 52 |key othe|r than R|
|00000a30| 65 74 75 72 6e 20 73 65 | 74 73 20 74 68 65 20 61 |eturn se|ts the a|
|00000a40| 62 6f 72 74 65 64 20 66 | 6c 61 67 20 61 6e 64 20 |borted f|lag and |
|00000a50| 74 65 6c 6c 73 20 74 68 | 65 20 63 6f 6d 6d 61 6e |tells th|e comman|
|00000a60| 64 20 74 6f 20 74 65 72 | 6d 69 6e 61 74 65 20 69 |d to ter|minate i|
|00000a70| 6d 6d 65 64 69 61 74 65 | 6c 79 2e 20 7d 0d 09 09 |mmediate|ly. }...|
|00000a80| 46 55 4e 43 54 49 4f 4e | 20 64 63 6d 64 44 72 61 |FUNCTION| dcmdDra|
|00000a90| 77 50 72 6f 6d 70 74 20 | 28 73 74 72 3a 20 53 74 |wPrompt |(str: St|
|00000aa0| 72 32 35 35 29 20 3a 20 | 42 4f 4f 4c 45 41 4e 3b |r255) : |BOOLEAN;|
|00000ab0| 0d 0d 20 20 7b 20 47 65 | 74 20 74 68 65 20 63 75 |.. { Ge|t the cu|
|00000ac0| 72 72 65 6e 74 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |rrent co|mmand li|
|00000ad0| 6e 65 20 70 6f 73 69 74 | 69 6f 6e 20 7d 0d 09 09 |ne posit|ion }...|
|00000ae0| 46 55 4e 43 54 49 4f 4e | 20 64 63 6d 64 47 65 74 |FUNCTION| dcmdGet|
|00000af0| 50 6f 73 69 74 69 6f 6e | 20 3a 20 49 4e 54 45 47 |Position| : INTEG|
|00000b00| 45 52 3b 0d 09 09 0d 09 | 09 7b 20 53 65 74 20 74 |ER;.....|.{ Set t|
|00000b10| 68 65 20 63 75 72 72 65 | 6e 74 20 63 6f 6d 6d 61 |he curre|nt comma|
|00000b20| 6e 64 20 6c 69 6e 65 20 | 70 6f 73 69 74 69 6f 6e |nd line |position|
|00000b30| 2e 20 54 68 69 73 20 73 | 68 6f 75 6c 64 20 6f 6e |. This s|hould on|
|00000b40| 6c 79 20 62 65 20 73 65 | 74 20 74 6f 20 61 20 76 |ly be se|t to a v|
|00000b50| 61 6c 75 65 20 72 65 74 | 75 72 6e 65 64 20 0d 09 |alue ret|urned ..|
|00000b60| 09 20 20 62 79 20 64 63 | 6d 64 47 65 74 50 6f 73 |. by dc|mdGetPos|
|00000b70| 69 74 69 6f 6e 2e 20 7d | 0d 09 09 50 52 4f 43 45 |ition. }|...PROCE|
|00000b80| 44 55 52 45 20 64 63 6d | 64 53 65 74 50 6f 73 69 |DURE dcm|dSetPosi|
|00000b90| 74 69 6f 6e 20 28 70 6f | 73 3a 20 49 4e 54 45 47 |tion (po|s: INTEG|
|00000ba0| 45 52 29 3b 0d 0d 20 20 | 7b 20 52 65 74 75 72 6e |ER);.. |{ Return|
|00000bb0| 20 74 68 65 20 6e 65 78 | 74 20 63 68 61 72 61 63 | the nex|t charac|
|00000bc0| 74 65 72 20 6f 6e 20 74 | 68 65 20 63 6f 6d 6d 61 |ter on t|he comma|
|00000bd0| 6e 64 20 6c 69 6e 65 20 | 6f 72 20 43 52 20 69 66 |nd line |or CR if|
|00000be0| 20 74 68 65 20 65 6e 74 | 69 72 65 20 6c 69 6e 65 | the ent|ire line|
|00000bf0| 20 68 61 73 20 62 65 65 | 6e 20 73 63 61 6e 6e 65 | has bee|n scanne|
|00000c00| 64 20 7d 0d 09 09 46 55 | 4e 43 54 49 4f 4e 20 64 |d }...FU|NCTION d|
|00000c10| 63 6d 64 47 65 74 4e 65 | 78 74 43 68 61 72 20 3a |cmdGetNe|xtChar :|
|00000c20| 20 43 48 41 52 3b 0d 09 | 09 0d 20 20 7b 20 52 65 | CHAR;..|.. { Re|
|00000c30| 74 75 72 6e 20 74 68 65 | 20 6e 65 78 74 20 63 68 |turn the| next ch|
|00000c40| 61 72 61 63 74 65 72 20 | 6f 6e 20 74 68 65 20 63 |aracter |on the c|
|00000c50| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 6f 72 20 43 |ommand l|ine or C|
|00000c60| 52 20 69 66 20 74 68 65 | 20 65 6e 74 69 72 65 20 |R if the| entire |
|00000c70| 6c 69 6e 65 20 68 61 73 | 20 62 65 65 6e 20 73 63 |line has| been sc|
|00000c80| 61 6e 6e 65 64 2e 0d 09 | 09 20 20 48 6f 77 65 76 |anned...|. Howev|
|00000c90| 65 72 2c 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |er, the |current |
|00000ca0| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 70 6f 73 |command |line pos|
|00000cb0| 69 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 63 68 61 |ition is| not cha|
|00000cc0| 6e 67 65 64 2e 20 7d 0d | 09 09 46 55 4e 43 54 49 |nged. }.|..FUNCTI|
|00000cd0| 4f 4e 20 64 63 6d 64 50 | 65 65 6b 41 74 4e 65 78 |ON dcmdP|eekAtNex|
|00000ce0| 74 43 68 61 72 20 3a 20 | 43 48 41 52 3b 0d 09 09 |tChar : |CHAR;...|
|00000cf0| 0d 20 20 7b 20 43 6f 70 | 79 20 61 6c 6c 20 63 68 |. { Cop|y all ch|
|00000d00| 61 72 61 63 74 65 72 73 | 20 66 72 6f 6d 20 74 68 |aracters| from th|
|00000d10| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 74 |e comman|d line t|
|00000d20| 6f 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |o the pa|rameter |
|00000d30| 73 74 72 69 6e 67 20 75 | 6e 74 69 6c 20 61 20 64 |string u|ntil a d|
|00000d40| 65 6c 69 6d 69 74 65 72 | 0d 09 09 20 20 69 73 20 |elimiter|... is |
|00000d50| 66 6f 75 6e 64 20 6f 72 | 20 74 68 65 20 65 6e 64 |found or| the end|
|00000d60| 20 6f 66 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | of the |command |
|00000d70| 6c 69 6e 65 20 69 73 20 | 72 65 61 63 68 65 64 2e |line is |reached.|
|00000d80| 20 41 20 64 65 6c 69 6d | 69 74 65 72 20 69 73 20 | A delim|iter is |
|00000d90| 65 69 74 68 65 72 20 61 | 20 73 70 61 63 65 2c 0d |either a| space,.|
|00000da0| 09 09 09 09 61 20 63 6f | 6d 6d 61 20 6f 72 20 61 |....a co|mma or a|
|00000db0| 20 43 52 2e 20 42 6f 74 | 68 20 73 69 6e 67 6c 65 | CR. Bot|h single|
|00000dc0| 20 61 6e 64 20 64 6f 75 | 62 6c 65 20 71 75 6f 74 | and dou|ble quot|
|00000dd0| 65 64 20 73 74 72 69 6e | 67 73 20 61 72 65 20 61 |ed strin|gs are a|
|00000de0| 6c 6c 6f 77 65 64 20 6f | 6e 20 74 68 65 20 63 6f |llowed o|n the co|
|00000df0| 6d 6d 61 6e 64 0d 09 09 | 09 09 6c 69 6e 65 2e 20 |mmand...|..line. |
|00000e00| 48 6f 77 65 76 65 72 2c | 20 74 68 65 20 6c 65 61 |However,| the lea|
|00000e10| 64 69 6e 67 20 61 6e 64 | 20 74 72 61 69 6c 69 6e |ding and| trailin|
|00000e20| 67 20 71 75 6f 74 65 73 | 20 6d 75 73 74 20 62 65 |g quotes| must be|
|00000e30| 20 6f 66 20 74 68 65 20 | 73 61 6d 65 20 74 79 70 | of the |same typ|
|00000e40| 65 2e 20 54 68 65 20 70 | 61 72 61 6d 65 74 65 72 |e. The p|arameter|
|00000e50| 0d 09 09 09 09 73 74 72 | 69 6e 67 20 69 73 20 72 |.....str|ing is r|
|00000e60| 65 74 75 72 6e 65 64 20 | 77 69 74 68 6f 75 74 20 |eturned |without |
|00000e70| 74 68 65 20 71 75 6f 74 | 65 73 2e 20 54 68 69 73 |the quot|es. This|
|00000e80| 20 66 75 6e 63 74 69 6f | 6e 20 72 65 74 75 72 6e | functio|n return|
|00000e90| 73 20 74 68 65 20 64 65 | 6c 69 6d 69 74 65 72 20 |s the de|limiter |
|00000ea0| 7d 0d 09 09 46 55 4e 43 | 54 49 4f 4e 20 64 63 6d |}...FUNC|TION dcm|
|00000eb0| 64 47 65 74 4e 65 78 74 | 50 61 72 61 6d 65 74 65 |dGetNext|Paramete|
|00000ec0| 72 20 28 56 41 52 20 73 | 74 72 3a 20 53 74 72 32 |r (VAR s|tr: Str2|
|00000ed0| 35 35 29 20 3a 20 43 48 | 41 52 3b 0d 0d 20 20 7b |55) : CH|AR;.. {|
|00000ee0| 20 50 61 72 73 65 20 74 | 68 65 20 63 6f 6d 6d 61 | Parse t|he comma|
|00000ef0| 6e 64 20 6c 69 6e 65 20 | 66 6f 72 20 74 68 65 20 |nd line |for the |
|00000f00| 6e 65 78 74 20 65 78 70 | 72 65 73 73 69 6f 6e 2e |next exp|ression.|
|00000f10| 20 41 6c 6c 20 65 78 70 | 72 65 73 73 69 6f 6e 73 | All exp|ressions|
|00000f20| 20 61 72 65 20 65 76 61 | 6c 75 61 74 65 64 20 74 | are eva|luated t|
|00000f30| 6f 20 33 32 20 62 69 74 | 73 2e 0d 09 09 20 20 54 |o 32 bit|s.... T|
|00000f40| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |his func|tion ret|
|00000f50| 75 72 6e 73 20 74 68 65 | 20 64 65 6c 69 6d 69 74 |urns the| delimit|
|00000f60| 65 72 20 61 66 74 65 72 | 20 74 68 65 20 65 78 70 |er after| the exp|
|00000f70| 72 65 73 73 69 6f 6e 2e | 20 54 68 65 20 70 6f 73 |ression.| The pos|
|00000f80| 73 69 62 6c 65 20 64 65 | 6c 69 6d 69 74 65 72 73 |sible de|limiters|
|00000f90| 20 61 72 65 0d 09 09 09 | 09 73 70 61 63 65 2c 20 | are....|.space, |
|00000fa0| 63 6f 6d 6d 61 20 61 6e | 64 20 43 52 2e 20 20 53 |comma an|d CR. S|
|00000fb0| 70 61 63 65 20 69 73 09 | 6e 6f 74 20 74 72 65 61 |pace is.|not trea|
|00000fc0| 74 65 64 20 61 73 20 61 | 20 64 65 6c 69 6d 69 74 |ted as a| delimit|
|00000fd0| 65 72 20 69 6e 20 74 68 | 65 20 6d 69 64 64 6c 65 |er in th|e middle|
|00000fe0| 20 6f 66 20 65 78 70 72 | 65 73 73 69 6f 6e 73 2e | of expr|essions.|
|00000ff0| 0d 09 09 09 09 46 6f 72 | 20 69 6e 73 74 61 6e 63 |.....For| instanc|
|00001000| 65 2c 20 27 31 20 2b 20 | 32 27 20 77 69 6c 6c 20 |e, '1 + |2' will |
|00001010| 72 65 74 75 72 6e 09 61 | 20 76 61 6c 75 65 20 6f |return.a| value o|
|00001020| 66 20 33 20 61 6e 64 20 | 74 68 65 20 64 65 6c 69 |f 3 and |the deli|
|00001030| 6d 69 74 65 72 20 77 69 | 6c 6c 20 62 65 20 74 68 |miter wi|ll be th|
|00001040| 65 20 63 68 61 72 20 66 | 6f 6c 6c 6f 77 69 6e 67 |e char f|ollowing|
|00001050| 0d 09 09 09 09 74 68 65 | 20 32 2e 20 54 68 65 20 |.....the| 2. The |
|00001060| 72 65 74 75 72 6e 20 70 | 61 72 61 6d 65 74 65 72 |return p|arameter|
|00001070| 20 27 6f 6b 27 20 74 65 | 6c 6c 73 20 69 66 20 74 | 'ok' te|lls if t|
|00001080| 68 65 20 65 78 70 72 65 | 73 73 69 6f 6e 20 77 61 |he expre|ssion wa|
|00001090| 73 20 70 61 72 73 65 64 | 20 73 75 63 63 65 73 73 |s parsed| success|
|000010a0| 66 75 6c 6c 79 2e 20 7d | 0d 09 09 46 55 4e 43 54 |fully. }|...FUNCT|
|000010b0| 49 4f 4e 20 64 63 6d 64 | 47 65 74 4e 65 78 74 45 |ION dcmd|GetNextE|
|000010c0| 78 70 72 65 73 73 69 6f | 6e 20 28 56 41 52 20 76 |xpressio|n (VAR v|
|000010d0| 61 6c 75 65 3a 20 4c 4f | 4e 47 49 4e 54 3b 20 56 |alue: LO|NGINT; V|
|000010e0| 41 52 20 6f 6b 3a 20 42 | 4f 4f 4c 45 41 4e 29 20 |AR ok: B|OOLEAN) |
|000010f0| 3a 20 43 48 41 52 3b 09 | 09 0d 0d 09 09 7b 20 43 |: CHAR;.|.....{ C|
|00001100| 6f 70 79 20 74 68 65 20 | 62 72 65 61 6b 20 6d 65 |opy the |break me|
|00001110| 73 73 61 67 65 20 4d 61 | 63 73 42 75 67 20 64 69 |ssage Ma|csBug di|
|00001120| 73 70 6c 61 79 65 64 20 | 74 68 65 20 6c 61 73 74 |splayed |the last|
|00001130| 20 74 69 6d 65 20 69 74 | 20 77 61 73 20 65 6e 74 | time it| was ent|
|00001140| 65 72 65 64 20 69 6e 74 | 6f 20 73 74 72 2e 0d 09 |ered int|o str...|
|00001150| 09 09 09 54 68 69 73 20 | 6d 61 79 20 63 6f 6e 74 |...This |may cont|
|00001160| 61 69 6e 20 6d 75 6c 74 | 69 70 6c 65 20 6c 69 6e |ain mult|iple lin|
|00001170| 65 73 20 73 65 70 61 72 | 61 74 65 64 20 62 79 20 |es separ|ated by |
|00001180| 43 52 27 73 2e 20 7d 0d | 09 09 50 52 4f 43 45 44 |CR's. }.|..PROCED|
|00001190| 55 52 45 20 64 63 6d 64 | 47 65 74 42 72 65 61 6b |URE dcmd|GetBreak|
|000011a0| 4d 65 73 73 61 67 65 20 | 20 28 56 41 52 20 73 74 |Message | (VAR st|
|000011b0| 72 3a 20 53 74 72 32 35 | 35 29 3b 0d 09 09 0d 09 |r: Str25|5);.....|
|000011c0| 09 7b 20 52 65 74 75 72 | 6e 20 61 20 73 79 6d 62 |.{ Retur|n a symb|
|000011d0| 6f 6c 69 63 20 72 65 70 | 72 65 73 65 6e 74 61 74 |olic rep|resentat|
|000011e0| 69 6f 6e 20 66 6f 72 20 | 61 64 64 72 65 73 73 20 |ion for |address |
|000011f0| 69 6e 20 73 74 72 2e 20 | 49 66 20 6e 6f 20 73 79 |in str. |If no sy|
|00001200| 6d 62 6f 6c 20 63 61 6e | 20 62 65 20 66 6f 75 6e |mbol can| be foun|
|00001210| 64 0d 09 09 09 09 74 68 | 65 6e 20 61 6e 20 65 6d |d.....th|en an em|
|00001220| 70 74 79 20 73 74 72 69 | 6e 67 20 69 73 20 72 65 |pty stri|ng is re|
|00001230| 74 75 72 6e 65 64 2e 20 | 54 68 65 20 66 6f 72 6d |turned. |The form|
|00001240| 61 74 20 6f 66 20 74 68 | 65 20 73 79 6d 62 6f 6c |at of th|e symbol|
|00001250| 20 72 65 74 75 72 6e 65 | 64 20 69 73 20 4e 61 6d | returne|d is Nam|
|00001260| 65 2b 30 30 30 30 2e 0d | 09 09 09 09 09 09 57 69 |e+0000..|......Wi|
|00001270| 74 68 20 74 68 65 20 6e | 65 77 20 63 6f 6d 70 69 |th the n|ew compi|
|00001280| 6c 65 72 73 2c 20 74 68 | 65 20 6e 61 6d 65 20 69 |lers, th|e name i|
|00001290| 73 20 6e 6f 20 6c 6f 6e | 67 65 72 20 72 65 73 74 |s no lon|ger rest|
|000012a0| 72 69 63 74 65 64 20 74 | 6f 20 38 20 63 68 61 72 |ricted t|o 8 char|
|000012b0| 61 63 74 65 72 73 2e 20 | 7d 0d 09 09 50 52 4f 43 |acters. |}...PROC|
|000012c0| 45 44 55 52 45 20 64 63 | 6d 64 47 65 74 4e 61 6d |EDURE dc|mdGetNam|
|000012d0| 65 41 6e 64 4f 66 66 73 | 65 74 20 28 61 64 64 72 |eAndOffs|et (addr|
|000012e0| 65 73 73 3a 20 4c 4f 4e | 47 49 4e 54 3b 20 56 41 |ess: LON|GINT; VA|
|000012f0| 52 20 73 74 72 3a 20 53 | 74 72 32 35 35 29 3b 0d |R str: S|tr255);.|
|00001300| 0d 20 20 7b 20 52 65 74 | 75 72 6e 20 74 68 65 20 |. { Ret|urn the |
|00001310| 74 72 61 70 20 6e 61 6d | 65 20 66 6f 72 20 74 68 |trap nam|e for th|
|00001320| 65 20 74 72 61 70 20 6e | 75 6d 62 65 72 2e 20 49 |e trap n|umber. I|
|00001330| 66 20 6e 6f 20 73 79 6d | 62 6f 6c 20 63 61 6e 20 |f no sym|bol can |
|00001340| 62 65 20 66 6f 75 6e 64 | 0d 09 09 09 09 74 68 65 |be found|.....the|
|00001350| 6e 20 61 6e 20 65 6d 70 | 74 79 20 73 74 72 69 6e |n an emp|ty strin|
|00001360| 67 20 69 73 20 72 65 74 | 75 72 6e 65 64 2e 20 7d |g is ret|urned. }|
|00001370| 0d 09 09 50 52 4f 43 45 | 44 55 52 45 20 64 63 6d |...PROCE|DURE dcm|
|00001380| 64 47 65 74 54 72 61 70 | 4e 61 6d 65 20 28 74 72 |dGetTrap|Name (tr|
|00001390| 61 70 4e 75 6d 62 65 72 | 3a 20 49 4e 54 45 47 45 |apNumber|: INTEGE|
|000013a0| 52 3b 20 56 41 52 20 74 | 72 61 70 4e 61 6d 65 3a |R; VAR t|rapName:|
|000013b0| 20 53 74 72 32 35 35 29 | 3b 0d 0d 20 20 7b 20 52 | Str255)|;.. { R|
|000013c0| 65 74 75 72 6e 20 61 20 | 70 6f 69 6e 74 65 72 20 |eturn a |pointer |
|000013d0| 74 68 65 20 6d 61 63 72 | 6f 20 6e 61 6d 65 20 66 |the macr|o name f|
|000013e0| 6f 72 20 74 68 65 20 67 | 69 76 65 6e 20 76 61 6c |or the g|iven val|
|000013f0| 75 65 2e 20 49 66 20 6e | 6f 20 6d 61 63 72 6f 20 |ue. If n|o macro |
|00001400| 63 61 6e 20 62 65 20 66 | 6f 75 6e 64 0d 09 09 09 |can be f|ound....|
|00001410| 09 74 68 65 6e 20 61 20 | 6e 69 6c 20 69 73 20 72 |.then a |nil is r|
|00001420| 65 74 75 72 6e 65 64 2e | 20 7d 0d 20 20 46 55 4e |eturned.| }. FUN|
|00001430| 43 54 49 4f 4e 20 64 63 | 6d 64 47 65 74 4d 61 63 |CTION dc|mdGetMac|
|00001440| 72 6f 4e 61 6d 65 28 76 | 61 6c 75 65 3a 20 4c 4f |roName(v|alue: LO|
|00001450| 4e 47 49 4e 54 29 3a 20 | 53 74 72 69 6e 67 50 74 |NGINT): |StringPt|
|00001460| 72 3b 0d 0d 20 20 7b 20 | 57 68 65 6e 20 61 20 64 |r;.. { |When a d|
|00001470| 65 62 75 67 67 65 72 20 | 63 6f 6d 6d 61 6e 64 20 |ebugger |command |
|00001480| 69 73 20 63 61 6c 6c 65 | 64 2c 20 74 68 65 20 64 |is calle|d, the d|
|00001490| 65 62 75 67 67 65 72 27 | 73 20 77 6f 72 6c 64 20 |ebugger'|s world |
|000014a0| 28 6c 6f 77 20 6d 65 6d | 6f 72 79 29 20 69 73 20 |(low mem|ory) is |
|000014b0| 69 6e 73 74 61 6c 6c 65 | 64 2e 0d 09 09 20 20 43 |installe|d.... C|
|000014c0| 6f 6d 6d 61 6e 64 73 20 | 74 68 61 74 20 77 61 6e |ommands |that wan|
|000014d0| 74 20 74 6f 20 72 65 66 | 65 72 65 6e 63 65 20 74 |t to ref|erence t|
|000014e0| 68 65 20 75 73 65 72 27 | 73 20 77 6f 72 6c 64 20 |he user'|s world |
|000014f0| 63 61 6e 20 73 77 61 70 | 20 62 61 63 6b 20 61 6e |can swap| back an|
|00001500| 64 20 66 6f 72 74 68 20 | 62 65 74 77 65 65 6e 20 |d forth |between |
|00001510| 74 68 65 0d 09 09 09 09 | 74 77 6f 20 77 6f 72 6c |the.....|two worl|
|00001520| 64 73 20 62 79 20 6d 61 | 6b 69 6e 67 20 74 68 69 |ds by ma|king thi|
|00001530| 73 20 63 61 6c 6c 2e 20 | 54 68 69 73 20 70 72 6f |s call. |This pro|
|00001540| 63 65 64 75 72 65 20 64 | 6f 65 73 20 6e 6f 74 68 |cedure d|oes noth|
|00001550| 69 6e 67 20 69 6e 20 4d | 61 63 73 42 75 67 2e 20 |ing in M|acsBug. |
|00001560| 49 74 20 69 73 20 69 6e | 63 6c 75 64 65 64 0d 09 |It is in|cluded..|
|00001570| 09 09 09 74 6f 20 73 75 | 70 70 6f 72 74 20 6f 74 |...to su|pport ot|
|00001580| 68 65 72 20 64 65 62 75 | 67 67 65 72 73 20 74 68 |her debu|ggers th|
|00001590| 61 74 20 6d 69 67 68 74 | 20 77 61 6e 74 20 74 6f |at might| want to|
|000015a0| 20 74 61 6b 65 20 61 64 | 76 61 6e 74 61 67 65 20 | take ad|vantage |
|000015b0| 6f 66 20 69 74 2e 20 7d | 0d 20 20 50 52 4f 43 45 |of it. }|. PROCE|
|000015c0| 44 55 52 45 20 64 63 6d | 64 53 77 61 70 57 6f 72 |DURE dcm|dSwapWor|
|000015d0| 6c 64 73 3b 0d 0d 20 20 | 7b 20 54 6f 67 67 6c 65 |lds;.. |{ Toggle|
|000015e0| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 75 73 65 | between| the use|
|000015f0| 72 20 61 6e 64 20 64 65 | 62 75 67 67 65 72 20 64 |r and de|bugger d|
|00001600| 69 73 70 6c 61 79 73 2e | 0d 09 09 20 20 54 68 65 |isplays.|... The|
|00001610| 20 66 69 72 73 74 20 63 | 61 6c 6c 20 72 65 73 74 | first c|all rest|
|00001620| 6f 72 65 73 20 74 68 65 | 20 75 73 65 72 27 73 20 |ores the| user's |
|00001630| 61 63 74 75 61 6c 20 73 | 63 72 65 65 6e 2e 0d 09 |actual s|creen...|
|00001640| 09 20 20 54 68 65 20 73 | 65 63 6f 6e 64 20 63 61 |. The s|econd ca|
|00001650| 6c 6c 20 72 65 73 74 6f | 72 65 73 20 74 68 65 20 |ll resto|res the |
|00001660| 64 65 62 75 67 67 65 72 | 27 73 20 73 63 72 65 65 |debugger|'s scree|
|00001670| 6e 2e 20 7d 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |n. }...P|ROCEDURE|
|00001680| 20 64 63 6d 64 53 77 61 | 70 53 63 72 65 65 6e 73 | dcmdSwa|pScreens|
|00001690| 3b 0d 0d 20 20 7b 20 57 | 61 6c 6b 20 74 68 72 75 |;.. { W|alk thru|
|000016a0| 20 74 68 65 20 62 6c 6f | 63 6b 73 20 69 6e 20 74 | the blo|cks in t|
|000016b0| 68 65 20 63 75 72 72 65 | 6e 74 20 68 65 61 70 2c |he curre|nt heap,|
|000016c0| 20 63 61 6c 6c 69 6e 67 | 20 44 6f 54 68 69 73 20 | calling| DoThis |
|000016d0| 66 6f 72 20 65 61 63 68 | 20 62 6c 6f 63 6b 2e 20 |for each| block. |
|000016e0| 44 6f 54 68 69 73 20 73 | 68 6f 75 6c 64 0d 09 09 |DoThis s|hould...|
|000016f0| 20 20 62 65 20 61 20 70 | 72 6f 63 65 64 75 72 65 | be a p|rocedure|
|00001700| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 3a 0d 09 09 | of the |form:...|
|00001710| 09 09 0d 09 09 20 20 20 | 20 50 52 4f 43 45 44 55 |..... | PROCEDU|
|00001720| 52 45 20 44 6f 54 68 69 | 73 20 28 62 6c 6f 63 6b |RE DoThi|s (block|
|00001730| 41 64 64 72 65 73 73 2c | 20 62 6c 6f 63 6b 4c 65 |Address,| blockLe|
|00001740| 6e 67 74 68 2c 20 61 64 | 64 72 4f 66 4d 61 73 74 |ngth, ad|drOfMast|
|00001750| 65 72 50 74 72 3a 20 4c | 4f 4e 47 49 4e 54 3b 0d |erPtr: L|ONGINT;.|
|00001760| 09 09 09 09 09 09 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00001770| 20 20 20 20 20 20 20 20 | 62 6c 6f 63 6b 54 79 70 | |blockTyp|
|00001780| 65 3a 20 49 4e 54 45 47 | 45 52 3b 0d 09 09 20 20 |e: INTEG|ER;... |
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017a0| 20 20 20 20 6c 6f 63 6b | 65 64 2c 20 70 75 72 67 | lock|ed, purg|
|000017b0| 65 61 62 6c 65 2c 20 72 | 65 73 6f 75 72 63 65 3a |eable, r|esource:|
|000017c0| 20 42 4f 4f 4c 45 41 4e | 29 3b 0d 0d 09 09 20 20 | BOOLEAN|);.... |
|000017d0| 54 68 65 20 62 6c 6f 63 | 6b 41 64 64 72 65 73 73 |The bloc|kAddress|
|000017e0| 20 61 6e 64 20 62 6c 6f | 63 6b 4c 65 6e 67 74 68 | and blo|ckLength|
|000017f0| 20 70 65 72 74 61 69 6e | 20 74 6f 20 74 68 65 20 | pertain| to the |
|00001800| 64 61 74 61 20 69 6e 20 | 74 68 65 20 68 65 61 70 |data in |the heap|
|00001810| 20 62 6c 6f 63 6b 2c 20 | 6e 6f 74 20 69 6e 63 6c | block, |not incl|
|00001820| 75 64 69 6e 67 0d 09 09 | 09 09 74 68 65 20 62 6c |uding...|..the bl|
|00001830| 6f 63 6b 20 68 65 61 64 | 65 72 2e 20 54 68 65 20 |ock head|er. The |
|00001840| 61 64 64 72 4f 66 4d 61 | 73 74 65 72 50 74 72 20 |addrOfMa|sterPtr |
|00001850| 69 73 20 74 68 65 20 6d | 61 73 74 65 72 20 70 6f |is the m|aster po|
|00001860| 69 6e 74 65 72 27 73 20 | 6c 6f 63 61 74 69 6f 6e |inter's |location|
|00001870| 20 69 6e 20 74 68 65 20 | 68 65 61 70 2c 0d 09 09 | in the |heap,...|
|00001880| 09 09 6e 6f 74 20 74 68 | 65 20 76 61 6c 75 65 20 |..not th|e value |
|00001890| 6f 66 20 74 68 65 20 6d | 61 73 74 65 72 20 70 74 |of the m|aster pt|
|000018a0| 72 2e 20 54 68 65 20 62 | 6c 6f 63 6b 54 79 70 65 |r. The b|lockType|
|000018b0| 20 69 73 20 64 65 66 69 | 6e 65 64 20 62 79 20 74 | is defi|ned by t|
|000018c0| 68 65 20 63 6f 6e 73 74 | 61 6e 74 73 20 66 72 65 |he const|ants fre|
|000018d0| 65 42 6c 6f 63 6b 2c 0d | 09 09 09 09 6e 6f 6e 72 |eBlock,.|....nonr|
|000018e0| 65 6c 6f 63 61 74 61 62 | 6c 65 42 6c 6f 63 6b 20 |elocatab|leBlock |
|000018f0| 61 6e 64 20 72 65 6c 6f | 63 61 74 61 62 6c 65 42 |and relo|catableB|
|00001900| 6c 6f 63 6b 2e 20 54 68 | 65 20 62 6f 6f 6c 65 61 |lock. Th|e boolea|
|00001910| 6e 73 20 6c 6f 63 6b 65 | 64 2c 20 70 75 72 67 65 |ns locke|d, purge|
|00001920| 61 62 6c 65 20 61 6e 64 | 20 72 65 73 6f 75 72 63 |able and| resourc|
|00001930| 65 0d 09 09 09 09 72 65 | 66 6c 65 63 74 20 74 68 |e.....re|flect th|
|00001940| 65 20 73 74 61 74 65 20 | 6f 66 20 74 68 65 20 62 |e state |of the b|
|00001950| 6c 6f 63 6b 2e 09 7d 0d | 20 20 50 52 4f 43 45 44 |lock..}.| PROCED|
|00001960| 55 52 45 20 64 63 6d 64 | 46 6f 72 41 6c 6c 48 65 |URE dcmd|ForAllHe|
|00001970| 61 70 42 6c 6f 63 6b 73 | 20 28 44 6f 54 68 69 73 |apBlocks| (DoThis|
|00001980| 3a 20 50 72 6f 63 50 74 | 72 29 3b 0d 0d 49 4d 50 |: ProcPt|r);..IMP|
|00001990| 4c 45 4d 45 4e 54 41 54 | 49 4f 4e 0d 0d 45 4e 44 |LEMENTAT|ION..END|
|000019a0| 2e 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 00 00 01 00 00 00 01 1e | 00 00 00 1e 00 00 00 32 |........|.......2|
|00001a10| 28 22 54 69 74 6c 65 53 | 74 72 22 29 2c 0d 7d 3b |("TitleS|tr"),.};|
|00001a20| 0d 0d 1e 2e 00 0b 26 4c | 41 ed fb ea 52 88 70 00 |......&L|A...R.p.|
|00001a30| 06 64 63 6d 64 2e 70 64 | 02 00 00 00 54 45 58 54 |.dcmd.pd|....TEXT|
|00001a40| 4d 50 53 20 01 00 00 00 | 00 40 00 00 00 00 dc cf |MPS ....|.@......|
|00001a50| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 40 |..TEXTMP|S .....@|
|00001a60| 00 00 70 46 00 00 00 00 | 00 00 00 00 00 00 00 00 |..pF....|........|
|00001a70| 00 00 9f b8 9a 39 00 00 | 19 21 00 00 01 50 67 2e |.....9..|.!...Pg.|
|00001a80| 53 00 67 24 53 00 67 14 | 53 00 67 2e 53 00 67 24 |S.g$S.g.|S.g.S.g$|
|00001a90| 53 00 67 0e 04 00 00 72 | 67 26 60 2a 16 fc 00 72 |S.g....r|g&`*...r|
|00001aa0| 60 54 16 fc 00 6e 60 4e | 16 fc 00 74 60 48 16 fc |`T...n`N|...t`H..|
|00001ab0| 00 62 60 42 16 fc 00 66 | 60 3c 16 fc 00 76 60 36 |.b`B...f|`<...v`6|
|00001ac0| 16 fc 00 3f 60 30 4a 2d | f1 b2 67 0e 70 00 10 07 |...?`0J-|..g.p...|
|00001ad0| 67 08 17 07 d6 fc 00 01 | 60 1c 70 00 10 07 2f 00 |g.......|`.p.../.|
|00001ae0| 48 6d f0 ba 2f 0b 4e ad | 06 92 2f 0b 4e ba 12 7c |Hm../.N.|../.N..||
|00001af0| d7 c0 4f ef 00 10 42 13 | 20 0c 4c ee 18 80 ff f4 |..O...B.| .L.....|
|00001b00| 00 00 00 1a 06 22 80 00 | 00 00 05 36 2e 32 2e 32 |....."..|...6.2.2|
|00001b10| 0d 4d 61 63 73 42 75 67 | 20 36 2e 32 2e 32 00 00 |.MacsBug| 6.2.2..|
|00001b20| 01 00 00 00 01 1e 00 00 | 00 1e 00 00 00 32 00 35 |........|.....2.5|
|00001b30| dc 74 08 74 00 00 00 1c | 00 32 00 00 76 65 72 73 |.t.t....|.2..vers|
|00001b40| 00 00 00 0a 00 02 ff ff | 20 00 00 00 00 35 dc 08 |........| ....5..|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+